package com.oneonefive.trainticketsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oneonefive.trainticketsystem.pojo.Ticket;

import java.io.Serializable;
import java.util.List;


public interface TicketService extends IService<Ticket> {
    List<Ticket> selectTicByTrainId(Integer ticketId,Integer trainId,String coachNo,String seatNo,Integer sold,Integer page);
    int getTicRowCount(Integer ticketId,Integer trainId,String coachNo,String seatNo,Integer sold);
    boolean insertTic(int ticketId,int trainId,String coach_no,String seat_no,Integer sold);
    boolean soldTic(int ticketId,int userId);
    boolean refundTic(int ticketId,int userId);
    @Override
    default boolean removeById(Serializable ticketId) {
        return IService.super.removeById(ticketId);
    }
}
